package com.itany.corejava.day10;

import java.util.Properties;

public class Test3<E,T extends Number> {

    private E e;
    private T t;

    public E getE() {
        return e;
    }

    public static void main(String[] args) {
        // Test3 t=new Test3();
        // t.setE("a");
        // t.setE(1);

        Test3<String,Integer> t=new Test3<>();
        t.setE("aaa");


        Test3<Integer,Double> t2=new Test3<>();
        t2.setE(1);

        Test3<Integer,Integer> t3=new Test3<Integer, Integer>();
        t3.f(t3);

    }

    public void f(Test3 t){
        t=new Test3<String,Integer>();
    }

    public void setE(E e) {
        this.e = e;
    }

    public T getT() {
        return t;
    }

    public void setT(T t) {
        this.t = t;
    }
}
